/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.ArrayList;
import java.util.Collection;
import javax.swing.AbstractListModel;

/**
 *
 * @author salm
 */
public class StringListModel extends AbstractListModel
{
    private ArrayList<String> sourceData;
    
    public StringListModel(ArrayList<String> source)
    {
        this.sourceData = source;
    }
    
    @Override
    public int getSize() {
        return sourceData.size();
    }

    @Override
    public Object getElementAt(int index) {
        return sourceData.get(index);
    }
    
}
